GraphicsFormats package for Buoy

RawPngExporter.SaveToBytes Method

Exports a picture formatted as PNG to a Bytes buffer.

SaveToBytes(
   image as RawBitmap) as Bytes

Parameters

image
The RawBitmap to export.

Returns

Bytes
Returns a Bytes containing a PNG encoded image.

Remarks

This method can throw GraphicsFormatsException.

See Also

RawPngExporter Class